macro(FORCE_OPTION option value type)
  set(${option} ${value} CACHE ${type} INTERNAL FORCE)
endmacro()

FORCE_OPTION(EVENT__DISABLE_THREAD_SUPPORT  ON   BOOL)
FORCE_OPTION(EVENT__DISABLE_OPENSSL         ON   BOOL)
FORCE_OPTION(EVENT__DISABLE_BENCHMARK       ON   BOOL)
FORCE_OPTION(EVENT__DISABLE_TESTS           ON   BOOL)
FORCE_OPTION(EVENT__DISABLE_REGRESS         ON   BOOL)
FORCE_OPTION(EVENT__DISABLE_SAMPLES         ON   BOOL)
FORCE_OPTION(EVENT__BUILD_SHARED_LIBRARIES  OFF  BOOL)

add_subdirectory(libevent)
